home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xfig.idb / usr / freeware / src / xfig / transfig.3.1.2 / fig2dev / alloc.h.z / alloc.h
Encoding:
C/C++ Source or Header  |  1997-09-09  |  2.0 KB  |  43 lines

  1. /*
  2.  * TransFig: Facility for Translating Fig code
  3.  * Copyright (c) 1985 Supoj Sutantavibul
  4.  * Copyright (c) 1991 Micah Beck
  5.  *
  6.  * THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  7.  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  8.  * EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  9.  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  10.  * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  11.  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  12.  * PERFORMANCE OF THIS SOFTWARE.
  13.  *
  14.  * The X Consortium, and any party obtaining a copy of these files from
  15.  * the X Consortium, directly or indirectly, is granted, free of charge, a
  16.  * full and unrestricted irrevocable, world-wide, paid up, royalty-free,
  17.  * nonexclusive right and license to deal in this software and
  18.  * documentation files (the "Software"), including without limitation the
  19.  * rights to use, copy, modify, merge, publish, distribute, sublicense,
  20.  * and/or sell copies of the Software, and to permit persons who receive
  21.  * copies from any such party to do so, with the only requirement being
  22.  * that this copyright notice remain intact.  This license includes without
  23.  * limitation a license to do the foregoing actions under any patents of
  24.  * the party supplying this software to the X Consortium.
  25.  */
  26.  
  27. extern char    *malloc();
  28. extern char    *calloc();
  29.  
  30. #define        Line_malloc(z)        z = (F_line*)malloc(LINOBJ_SIZE)
  31. #define        Pic_malloc(z)        z = (F_pic*)malloc(PIC_SIZE)
  32. #define        Spline_malloc(z)    z = (F_spline*)malloc(SPLOBJ_SIZE)
  33. #define        Ellipse_malloc(z)    z = (F_ellipse*)malloc(ELLOBJ_SIZE)
  34. #define        Arc_malloc(z)        z = (F_arc*)malloc(ARCOBJ_SIZE)
  35. #define        Compound_malloc(z)    z = (F_compound*)malloc(COMOBJ_SIZE)
  36. #define        Text_malloc(z)        z = (F_text*)malloc(TEXOBJ_SIZE)
  37. #define        Point_malloc(z)        z = (F_point*)malloc(POINT_SIZE)
  38. #define        Control_malloc(z)    z = (F_control*)malloc(CONTROL_SIZE)
  39. #define        Arrow_malloc(z)        z = (F_arrow*)malloc(ARROW_SIZE)
  40.  
  41. extern char    Err_mem[];
  42. extern char    Err_incomp[];
  43.